import { Controller, Get } from '@nestjs/common';
import { ApiOkResponse, ApiOperation, ApiTags } from '@nestjs/swagger';
import { UserInfoDto } from './user.dto';
import { UserService } from './user.service';

@Controller({
  path: 'user-info',
  version: '1',
})
@ApiTags('用户信息')
export class UserController {
  constructor(private readonly userService: UserService) {}
  
  @Get('list')
  @ApiOperation({ summary: '用户列表' })
  @ApiOkResponse({type:[UserInfoDto]})
  getLittleThing() {
    return this.userService.getUserList();
  }
}
